Concept in information theory
Differential entropy (also referred to as continuous entropy ) is a concept in information theory that began as an attempt by Claude Shannon to extend the idea of (Shannon) entropy (a measure of average surprisal) of a random variable , to continuous probability distributions. Unfortunately, Shannon did not derive this formula, and rather just assumed it was the correct continuous analogue of discrete entropy, but it is not.[ 1] : 181–218 The actual continuous version of discrete entropy is the limiting density of discrete points (LDDP). Differential entropy (described here) is commonly encountered in the literature, but it is a limiting case of the LDDP, and one that loses its fundamental association with discrete entropy .
In terms of measure theory , the differential entropy of a probability measure is the negative relative entropy from that measure to the Lebesgue measure , where the latter is treated as if it were a probability measure, despite being unnormalized.
Let
X
{\displaystyle X}
be a random variable with a probability density function
f
{\displaystyle f}
whose support is a set
X
{\displaystyle {\mathcal {X}}}
. The differential entropy
h
(
X
)
{\displaystyle h(X)}
or
h
(
f
)
{\displaystyle h(f)}
is defined as[ 2] : 243
h
(
X
)
=
E
[
−
log
(
f
(
X
)
)
]
=
−
∫
X
f
(
x
)
log
f
(
x
)
d
x
{\displaystyle h(X)=\operatorname {E} [-\log(f(X))]=-\int _{\mathcal {X}}f(x)\log f(x)\,dx}
For probability distributions which do not have an explicit density function expression, but have an explicit quantile function expression,
Q
(
p
)
{\displaystyle Q(p)}
, then
h
(
Q
)
{\displaystyle h(Q)}
can be defined in terms of the derivative of
Q
(
p
)
{\displaystyle Q(p)}
i.e. the quantile density function
Q
′
(
p
)
{\displaystyle Q'(p)}
as[ 3] : 54–59
h
(
Q
)
=
∫
0
1
log
Q
′
(
p
)
d
p
{\displaystyle h(Q)=\int _{0}^{1}\log Q'(p)\,dp}
.
As with its discrete analog, the units of differential entropy depend on the base of the logarithm , which is usually 2 (i.e., the units are bits ). See logarithmic units for logarithms taken in different bases. Related concepts such as joint , conditional differential entropy, and relative entropy are defined in a similar fashion. Unlike the discrete analog, the differential entropy has an offset that depends on the units used to measure
X
{\displaystyle X}
.[ 4] : 183–184 For example, the differential entropy of a quantity measured in millimeters will be log(1000) more than the same quantity measured in meters; a dimensionless quantity will have differential entropy of log(1000) more than the same quantity divided by 1000.
One must take care in trying to apply properties of discrete entropy to differential entropy, since probability density functions can be greater than 1. For example, the uniform distribution
U
(
0
,
1
/
2
)
{\displaystyle {\mathcal {U}}(0,1/2)}
has negative differential entropy; i.e., it is better ordered than
U
(
0
,
1
)
{\displaystyle {\mathcal {U}}(0,1)}
as shown now
∫
0
1
2
−
2
log
(
2
)
d
x
=
−
log
(
2
)
{\displaystyle \int _{0}^{\frac {1}{2}}-2\log(2)\,dx=-\log(2)\,}
being less than that of
U
(
0
,
1
)
{\displaystyle {\mathcal {U}}(0,1)}
which has zero differential entropy. Thus, differential entropy does not share all properties of discrete entropy.
The continuous mutual information
I
(
X
;
Y
)
{\displaystyle I(X;Y)}
has the distinction of retaining its fundamental significance as a measure of discrete information since it is actually the limit of the discrete mutual information of partitions of
X
{\displaystyle X}
and
Y
{\displaystyle Y}
as these partitions become finer and finer. Thus it is invariant under non-linear homeomorphisms (continuous and uniquely invertible maps),[ 5] including linear[ 6] transformations of
X
{\displaystyle X}
and
Y
{\displaystyle Y}
, and still represents the amount of discrete information that can be transmitted over a channel that admits a continuous space of values.
For the direct analogue of discrete entropy extended to the continuous space, see limiting density of discrete points .
Properties of differential entropy [ edit ]
For probability densities
f
{\displaystyle f}
and
g
{\displaystyle g}
, the Kullback–Leibler divergence
D
K
L
(
f
∥
g
)
{\displaystyle D_{KL}(f\parallel g)}
is greater than or equal to 0 with equality only if
f
=
g
{\displaystyle f=g}
almost everywhere . Similarly, for two random variables
X
{\displaystyle X}
and
Y
{\displaystyle Y}
,
I
(
X
;
Y
)
≥
0
{\displaystyle I(X;Y)\geq 0}
and
h
(
X
∣
Y
)
≤
h
(
X
)
{\displaystyle h(X\mid Y)\leq h(X)}
with equality if and only if
X
{\displaystyle X}
and
Y
{\displaystyle Y}
are independent .
The chain rule for differential entropy holds as in the discrete case[ 2] : 253
h
(
X
1
,
…
,
X
n
)
=
∑
i
=
1
n
h
(
X
i
∣
X
1
,
…
,
X
i
−
1
)
≤
∑
i
=
1
n
h
(
X
i
)
{\displaystyle h(X_{1},\ldots ,X_{n})=\sum _{i=1}^{n}h(X_{i}\mid X_{1},\ldots ,X_{i-1})\leq \sum _{i=1}^{n}h(X_{i})}
.
Differential entropy is translation invariant, i.e. for a constant
c
{\displaystyle c}
.[ 2] : 253
h
(
X
+
c
)
=
h
(
X
)
{\displaystyle h(X+c)=h(X)}
Differential entropy is in general not invariant under arbitrary invertible maps.
In particular, for a constant
a
{\displaystyle a}
h
(
a
X
)
=
h
(
X
)
+
log
|
a
|
{\displaystyle h(aX)=h(X)+\log |a|}
For a vector valued random variable
X
{\displaystyle \mathbf {X} }
and an invertible (square) matrix
A
{\displaystyle \mathbf {A} }
h
(
A
X
)
=
h
(
X
)
+
log
(
|
det
A
|
)
{\displaystyle h(\mathbf {A} \mathbf {X} )=h(\mathbf {X} )+\log \left(|\det \mathbf {A} |\right)}
[ 2] : 253
In general, for a transformation from a random vector to another random vector with same dimension
Y
=
m
(
X
)
{\displaystyle \mathbf {Y} =m\left(\mathbf {X} \right)}
, the corresponding entropies are related via
h
(
Y
)
≤
h
(
X
)
+
∫
f
(
x
)
log
|
∂
m
∂
x
|
d
x
{\displaystyle h(\mathbf {Y} )\leq h(\mathbf {X} )+\int f(x)\log \left\vert {\frac {\partial m}{\partial x}}\right\vert \,dx}
where
|
∂
m
∂
x
|
{\displaystyle \left\vert {\frac {\partial m}{\partial x}}\right\vert }
is the Jacobian of the transformation
m
{\displaystyle m}
.[ 7] The above inequality becomes an equality if the transform is a bijection. Furthermore, when
m
{\displaystyle m}
is a rigid rotation, translation, or combination thereof, the Jacobian determinant is always 1, and
h
(
Y
)
=
h
(
X
)
{\displaystyle h(Y)=h(X)}
.
If a random vector
X
∈
R
n
{\displaystyle X\in \mathbb {R} ^{n}}
has mean zero and covariance matrix
K
{\displaystyle K}
,
h
(
X
)
≤
1
2
log
(
det
2
π
e
K
)
=
1
2
log
[
(
2
π
e
)
n
det
K
]
{\displaystyle h(\mathbf {X} )\leq {\frac {1}{2}}\log(\det {2\pi eK})={\frac {1}{2}}\log[(2\pi e)^{n}\det {K}]}
with equality if and only if
X
{\displaystyle X}
is jointly gaussian (see below ).[ 2] : 254
However, differential entropy does not have other desirable properties:
It is not invariant under change of variables , and is therefore most useful with dimensionless variables.
It can be negative.
A modification of differential entropy that addresses these drawbacks is the relative information entropy , also known as the Kullback–Leibler divergence, which includes an invariant measure factor (see limiting density of discrete points ).
Maximization in the normal distribution [ edit ]
With a normal distribution , differential entropy is maximized for a given variance. A Gaussian random variable has the largest entropy amongst all random variables of equal variance, or, alternatively, the maximum entropy distribution under constraints of mean and variance is the Gaussian.[ 2] : 255
Let
g
(
x
)
{\displaystyle g(x)}
be a Gaussian PDF with mean μ and variance
σ
2
{\displaystyle \sigma ^{2}}
and
f
(
x
)
{\displaystyle f(x)}
an arbitrary PDF with the same variance. Since differential entropy is translation invariant we can assume that
f
(
x
)
{\displaystyle f(x)}
has the same mean of
μ
{\displaystyle \mu }
as
g
(
x
)
{\displaystyle g(x)}
.
Consider the Kullback–Leibler divergence between the two distributions
0
≤
D
K
L
(
f
∥
g
)
=
∫
−
∞
∞
f
(
x
)
log
(
f
(
x
)
g
(
x
)
)
d
x
=
−
h
(
f
)
−
∫
−
∞
∞
f
(
x
)
log
(
g
(
x
)
)
d
x
.
{\displaystyle 0\leq D_{KL}(f\parallel g)=\int _{-\infty }^{\infty }f(x)\log \left({\frac {f(x)}{g(x)}}\right)\,dx=-h(f)-\int _{-\infty }^{\infty }f(x)\log(g(x))\,dx.}
Now note that
∫
−
∞
∞
f
(
x
)
log
(
g
(
x
)
)
d
x
=
∫
−
∞
∞
f
(
x
)
log
(
1
2
π
σ
2
e
−
(
x
−
μ
)
2
2
σ
2
)
d
x
=
∫
−
∞
∞
f
(
x
)
log
1
2
π
σ
2
d
x
+
log
(
e
)
∫
−
∞
∞
f
(
x
)
(
−
(
x
−
μ
)
2
2
σ
2
)
d
x
=
−
1
2
log
(
2
π
σ
2
)
−
log
(
e
)
σ
2
2
σ
2
=
−
1
2
(
log
(
2
π
σ
2
)
+
log
(
e
)
)
=
−
1
2
log
(
2
π
e
σ
2
)
=
−
h
(
g
)
{\displaystyle {\begin{aligned}\int _{-\infty }^{\infty }f(x)\log(g(x))\,dx&=\int _{-\infty }^{\infty }f(x)\log \left({\frac {1}{\sqrt {2\pi \sigma ^{2}}}}e^{-{\frac {(x-\mu )^{2}}{2\sigma ^{2}}}}\right)\,dx\\&=\int _{-\infty }^{\infty }f(x)\log {\frac {1}{\sqrt {2\pi \sigma ^{2}}}}dx\,+\,\log(e)\int _{-\infty }^{\infty }f(x)\left(-{\frac {(x-\mu )^{2}}{2\sigma ^{2}}}\right)\,dx\\&=-{\tfrac {1}{2}}\log(2\pi \sigma ^{2})-\log(e){\frac {\sigma ^{2}}{2\sigma ^{2}}}\\&=-{\tfrac {1}{2}}\left(\log(2\pi \sigma ^{2})+\log(e)\right)\\&=-{\tfrac {1}{2}}\log(2\pi e\sigma ^{2})\\&=-h(g)\end{aligned}}}
because the result does not depend on
f
(
x
)
{\displaystyle f(x)}
other than through the variance. Combining the two results yields
h
(
g
)
−
h
(
f
)
≥
0
{\displaystyle h(g)-h(f)\geq 0\!}
with equality when
f
(
x
)
=
g
(
x
)
{\displaystyle f(x)=g(x)}
following from the properties of Kullback–Leibler divergence.
This result may also be demonstrated using the calculus of variations . A Lagrangian function with two Lagrangian multipliers may be defined as:
L
=
∫
−
∞
∞
g
(
x
)
ln
(
g
(
x
)
)
d
x
−
λ
0
(
1
−
∫
−
∞
∞
g
(
x
)
d
x
)
−
λ
(
σ
2
−
∫
−
∞
∞
g
(
x
)
(
x
−
μ
)
2
d
x
)
{\displaystyle L=\int _{-\infty }^{\infty }g(x)\ln(g(x))\,dx-\lambda _{0}\left(1-\int _{-\infty }^{\infty }g(x)\,dx\right)-\lambda \left(\sigma ^{2}-\int _{-\infty }^{\infty }g(x)(x-\mu )^{2}\,dx\right)}
where g(x) is some function with mean μ. When the entropy of g(x) is at a maximum and the constraint equations, which consist of the normalization condition
(
1
=
∫
−
∞
∞
g
(
x
)
d
x
)
{\displaystyle \left(1=\int _{-\infty }^{\infty }g(x)\,dx\right)}
and the requirement of fixed variance
(
σ
2
=
∫
−
∞
∞
g
(
x
)
(
x
−
μ
)
2
d
x
)
{\displaystyle \left(\sigma ^{2}=\int _{-\infty }^{\infty }g(x)(x-\mu )^{2}\,dx\right)}
, are both satisfied, then a small variation δg (x ) about g (x ) will produce a variation δL about L which is equal to zero:
0
=
δ
L
=
∫
−
∞
∞
δ
g
(
x
)
(
ln
(
g
(
x
)
)
+
1
+
λ
0
+
λ
(
x
−
μ
)
2
)
d
x
{\displaystyle 0=\delta L=\int _{-\infty }^{\infty }\delta g(x)\left(\ln(g(x))+1+\lambda _{0}+\lambda (x-\mu )^{2}\right)\,dx}
Since this must hold for any small δg (x ), the term in brackets must be zero, and solving for g(x) yields:
g
(
x
)
=
e
−
λ
0
−
1
−
λ
(
x
−
μ
)
2
{\displaystyle g(x)=e^{-\lambda _{0}-1-\lambda (x-\mu )^{2}}}
Using the constraint equations to solve for λ0 and λ yields the normal distribution:
g
(
x
)
=
1
2
π
σ
2
e
−
(
x
−
μ
)
2
2
σ
2
{\displaystyle g(x)={\frac {1}{\sqrt {2\pi \sigma ^{2}}}}e^{-{\frac {(x-\mu )^{2}}{2\sigma ^{2}}}}}
Example: Exponential distribution [ edit ]
Let
X
{\displaystyle X}
be an exponentially distributed random variable with parameter
λ
{\displaystyle \lambda }
, that is, with probability density function
f
(
x
)
=
λ
e
−
λ
x
for
x
≥
0.
{\displaystyle f(x)=\lambda e^{-\lambda x}{\mbox{ for }}x\geq 0.}
Its differential entropy is then
h
e
(
X
)
{\displaystyle h_{e}(X)\,}
=
−
∫
0
∞
λ
e
−
λ
x
log
(
λ
e
−
λ
x
)
d
x
{\displaystyle =-\int _{0}^{\infty }\lambda e^{-\lambda x}\log(\lambda e^{-\lambda x})\,dx}
=
−
(
∫
0
∞
(
log
λ
)
λ
e
−
λ
x
d
x
+
∫
0
∞
(
−
λ
x
)
λ
e
−
λ
x
d
x
)
{\displaystyle =-\left(\int _{0}^{\infty }(\log \lambda )\lambda e^{-\lambda x}\,dx+\int _{0}^{\infty }(-\lambda x)\lambda e^{-\lambda x}\,dx\right)}
=
−
log
λ
∫
0
∞
f
(
x
)
d
x
+
λ
E
[
X
]
{\displaystyle =-\log \lambda \int _{0}^{\infty }f(x)\,dx+\lambda E[X]}
=
−
log
λ
+
1
.
{\displaystyle =-\log \lambda +1\,.}
Here,
h
e
(
X
)
{\displaystyle h_{e}(X)}
was used rather than
h
(
X
)
{\displaystyle h(X)}
to make it explicit that the logarithm was taken to base e , to simplify the calculation.
Relation to estimator error [ edit ]
The differential entropy yields a lower bound on the expected squared error of an estimator . For any random variable
X
{\displaystyle X}
and estimator
X
^
{\displaystyle {\widehat {X}}}
the following holds:[ 2]
E
[
(
X
−
X
^
)
2
]
≥
1
2
π
e
e
2
h
(
X
)
{\displaystyle \operatorname {E} [(X-{\widehat {X}})^{2}]\geq {\frac {1}{2\pi e}}e^{2h(X)}}
with equality if and only if
X
{\displaystyle X}
is a Gaussian random variable and
X
^
{\displaystyle {\widehat {X}}}
is the mean of
X
{\displaystyle X}
.
Differential entropies for various distributions [ edit ]
In the table below
Γ
(
x
)
=
∫
0
∞
e
−
t
t
x
−
1
d
t
{\displaystyle \Gamma (x)=\int _{0}^{\infty }e^{-t}t^{x-1}dt}
is the gamma function ,
ψ
(
x
)
=
d
d
x
ln
Γ
(
x
)
=
Γ
′
(
x
)
Γ
(
x
)
{\displaystyle \psi (x)={\frac {d}{dx}}\ln \Gamma (x)={\frac {\Gamma '(x)}{\Gamma (x)}}}
is the digamma function ,
B
(
p
,
q
)
=
Γ
(
p
)
Γ
(
q
)
Γ
(
p
+
q
)
{\displaystyle B(p,q)={\frac {\Gamma (p)\Gamma (q)}{\Gamma (p+q)}}}
is the beta function , and γE is Euler's constant .[ 8] : 219–230
Table of differential entropies
Distribution Name
Probability density function (pdf)
Differential entropy in nats
Support
Uniform
f
(
x
)
=
1
b
−
a
{\displaystyle f(x)={\frac {1}{b-a}}}
ln
(
b
−
a
)
{\displaystyle \ln(b-a)\,}
[
a
,
b
]
{\displaystyle [a,b]\,}
Normal
f
(
x
)
=
1
2
π
σ
2
exp
(
−
(
x
−
μ
)
2
2
σ
2
)
{\displaystyle f(x)={\frac {1}{\sqrt {2\pi \sigma ^{2}}}}\exp \left(-{\frac {(x-\mu )^{2}}{2\sigma ^{2}}}\right)}
ln
(
σ
2
π
e
)
{\displaystyle \ln \left(\sigma {\sqrt {2\,\pi \,e}}\right)}
(
−
∞
,
∞
)
{\displaystyle (-\infty ,\infty )\,}
Exponential
f
(
x
)
=
λ
exp
(
−
λ
x
)
{\displaystyle f(x)=\lambda \exp \left(-\lambda x\right)}
1
−
ln
λ
{\displaystyle 1-\ln \lambda \,}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
Rayleigh
f
(
x
)
=
x
σ
2
exp
(
−
x
2
2
σ
2
)
{\displaystyle f(x)={\frac {x}{\sigma ^{2}}}\exp \left(-{\frac {x^{2}}{2\sigma ^{2}}}\right)}
1
+
ln
σ
2
+
γ
E
2
{\displaystyle 1+\ln {\frac {\sigma }{\sqrt {2}}}+{\frac {\gamma _{E}}{2}}}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
Beta
f
(
x
)
=
x
α
−
1
(
1
−
x
)
β
−
1
B
(
α
,
β
)
{\displaystyle f(x)={\frac {x^{\alpha -1}(1-x)^{\beta -1}}{B(\alpha ,\beta )}}}
for
0
≤
x
≤
1
{\displaystyle 0\leq x\leq 1}
ln
B
(
α
,
β
)
−
(
α
−
1
)
[
ψ
(
α
)
−
ψ
(
α
+
β
)
]
{\displaystyle \ln B(\alpha ,\beta )-(\alpha -1)[\psi (\alpha )-\psi (\alpha +\beta )]\,}
−
(
β
−
1
)
[
ψ
(
β
)
−
ψ
(
α
+
β
)
]
{\displaystyle -(\beta -1)[\psi (\beta )-\psi (\alpha +\beta )]\,}
[
0
,
1
]
{\displaystyle [0,1]\,}
Cauchy
f
(
x
)
=
γ
π
1
γ
2
+
x
2
{\displaystyle f(x)={\frac {\gamma }{\pi }}{\frac {1}{\gamma ^{2}+x^{2}}}}
ln
(
4
π
γ
)
{\displaystyle \ln(4\pi \gamma )\,}
(
−
∞
,
∞
)
{\displaystyle (-\infty ,\infty )\,}
Chi
f
(
x
)
=
2
2
k
/
2
Γ
(
k
/
2
)
x
k
−
1
exp
(
−
x
2
2
)
{\displaystyle f(x)={\frac {2}{2^{k/2}\Gamma (k/2)}}x^{k-1}\exp \left(-{\frac {x^{2}}{2}}\right)}
ln
Γ
(
k
/
2
)
2
−
k
−
1
2
ψ
(
k
2
)
+
k
2
{\displaystyle \ln {\frac {\Gamma (k/2)}{\sqrt {2}}}-{\frac {k-1}{2}}\psi \left({\frac {k}{2}}\right)+{\frac {k}{2}}}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
Chi-squared
f
(
x
)
=
1
2
k
/
2
Γ
(
k
/
2
)
x
k
2
−
1
exp
(
−
x
2
)
{\displaystyle f(x)={\frac {1}{2^{k/2}\Gamma (k/2)}}x^{{\frac {k}{2}}\!-\!1}\exp \left(-{\frac {x}{2}}\right)}
ln
2
Γ
(
k
2
)
−
(
1
−
k
2
)
ψ
(
k
2
)
+
k
2
{\displaystyle \ln 2\Gamma \left({\frac {k}{2}}\right)-\left(1-{\frac {k}{2}}\right)\psi \left({\frac {k}{2}}\right)+{\frac {k}{2}}}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
Erlang
f
(
x
)
=
λ
k
(
k
−
1
)
!
x
k
−
1
exp
(
−
λ
x
)
{\displaystyle f(x)={\frac {\lambda ^{k}}{(k-1)!}}x^{k-1}\exp(-\lambda x)}
(
1
−
k
)
ψ
(
k
)
+
ln
Γ
(
k
)
λ
+
k
{\displaystyle (1-k)\psi (k)+\ln {\frac {\Gamma (k)}{\lambda }}+k}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
F
f
(
x
)
=
n
1
n
1
2
n
2
n
2
2
B
(
n
1
2
,
n
2
2
)
x
n
1
2
−
1
(
n
2
+
n
1
x
)
n
1
+
n
2
2
{\displaystyle f(x)={\frac {n_{1}^{\frac {n_{1}}{2}}n_{2}^{\frac {n_{2}}{2}}}{B({\frac {n_{1}}{2}},{\frac {n_{2}}{2}})}}{\frac {x^{{\frac {n_{1}}{2}}-1}}{(n_{2}+n_{1}x)^{\frac {n_{1}+n2}{2}}}}}
ln
n
1
n
2
B
(
n
1
2
,
n
2
2
)
+
(
1
−
n
1
2
)
ψ
(
n
1
2
)
−
{\displaystyle \ln {\frac {n_{1}}{n_{2}}}B\left({\frac {n_{1}}{2}},{\frac {n_{2}}{2}}\right)+\left(1-{\frac {n_{1}}{2}}\right)\psi \left({\frac {n_{1}}{2}}\right)-}
(
1
+
n
2
2
)
ψ
(
n
2
2
)
+
n
1
+
n
2
2
ψ
(
n
1
+
n
2
2
)
{\displaystyle \left(1+{\frac {n_{2}}{2}}\right)\psi \left({\frac {n_{2}}{2}}\right)+{\frac {n_{1}+n_{2}}{2}}\psi \left({\frac {n_{1}\!+\!n_{2}}{2}}\right)}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
Gamma
f
(
x
)
=
x
k
−
1
exp
(
−
x
θ
)
θ
k
Γ
(
k
)
{\displaystyle f(x)={\frac {x^{k-1}\exp(-{\frac {x}{\theta }})}{\theta ^{k}\Gamma (k)}}}
ln
(
θ
Γ
(
k
)
)
+
(
1
−
k
)
ψ
(
k
)
+
k
{\displaystyle \ln(\theta \Gamma (k))+(1-k)\psi (k)+k\,}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
Laplace
f
(
x
)
=
1
2
b
exp
(
−
|
x
−
μ
|
b
)
{\displaystyle f(x)={\frac {1}{2b}}\exp \left(-{\frac {|x-\mu |}{b}}\right)}
1
+
ln
(
2
b
)
{\displaystyle 1+\ln(2b)\,}
(
−
∞
,
∞
)
{\displaystyle (-\infty ,\infty )\,}
Logistic
f
(
x
)
=
e
−
x
/
s
s
(
1
+
e
−
x
/
s
)
2
{\displaystyle f(x)={\frac {e^{-x/s}}{s(1+e^{-x/s})^{2}}}}
ln
s
+
2
{\displaystyle \ln s+2\,}
(
−
∞
,
∞
)
{\displaystyle (-\infty ,\infty )\,}
Lognormal
f
(
x
)
=
1
σ
x
2
π
exp
(
−
(
ln
x
−
μ
)
2
2
σ
2
)
{\displaystyle f(x)={\frac {1}{\sigma x{\sqrt {2\pi }}}}\exp \left(-{\frac {(\ln x-\mu )^{2}}{2\sigma ^{2}}}\right)}
μ
+
1
2
ln
(
2
π
e
σ
2
)
{\displaystyle \mu +{\frac {1}{2}}\ln(2\pi e\sigma ^{2})}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
Maxwell–Boltzmann
f
(
x
)
=
1
a
3
2
π
x
2
exp
(
−
x
2
2
a
2
)
{\displaystyle f(x)={\frac {1}{a^{3}}}{\sqrt {\frac {2}{\pi }}}\,x^{2}\exp \left(-{\frac {x^{2}}{2a^{2}}}\right)}
ln
(
a
2
π
)
+
γ
E
−
1
2
{\displaystyle \ln(a{\sqrt {2\pi }})+\gamma _{E}-{\frac {1}{2}}}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
Generalized normal
f
(
x
)
=
2
β
α
2
Γ
(
α
2
)
x
α
−
1
exp
(
−
β
x
2
)
{\displaystyle f(x)={\frac {2\beta ^{\frac {\alpha }{2}}}{\Gamma ({\frac {\alpha }{2}})}}x^{\alpha -1}\exp(-\beta x^{2})}
ln
Γ
(
α
/
2
)
2
β
1
2
−
α
−
1
2
ψ
(
α
2
)
+
α
2
{\displaystyle \ln {\frac {\Gamma (\alpha /2)}{2\beta ^{\frac {1}{2}}}}-{\frac {\alpha -1}{2}}\psi \left({\frac {\alpha }{2}}\right)+{\frac {\alpha }{2}}}
(
−
∞
,
∞
)
{\displaystyle (-\infty ,\infty )\,}
Pareto
f
(
x
)
=
α
x
m
α
x
α
+
1
{\displaystyle f(x)={\frac {\alpha x_{m}^{\alpha }}{x^{\alpha +1}}}}
ln
x
m
α
+
1
+
1
α
{\displaystyle \ln {\frac {x_{m}}{\alpha }}+1+{\frac {1}{\alpha }}}
[
x
m
,
∞
)
{\displaystyle [x_{m},\infty )\,}
Student's t
f
(
x
)
=
(
1
+
x
2
/
ν
)
−
ν
+
1
2
ν
B
(
1
2
,
ν
2
)
{\displaystyle f(x)={\frac {(1+x^{2}/\nu )^{-{\frac {\nu +1}{2}}}}{{\sqrt {\nu }}B({\frac {1}{2}},{\frac {\nu }{2}})}}}
ν
+
1
2
(
ψ
(
ν
+
1
2
)
−
ψ
(
ν
2
)
)
+
ln
ν
B
(
1
2
,
ν
2
)
{\displaystyle {\frac {\nu \!+\!1}{2}}\left(\psi \left({\frac {\nu \!+\!1}{2}}\right)\!-\!\psi \left({\frac {\nu }{2}}\right)\right)\!+\!\ln {\sqrt {\nu }}B\left({\frac {1}{2}},{\frac {\nu }{2}}\right)}
(
−
∞
,
∞
)
{\displaystyle (-\infty ,\infty )\,}
Triangular
f
(
x
)
=
{
2
(
x
−
a
)
(
b
−
a
)
(
c
−
a
)
f
o
r
a
≤
x
≤
c
,
2
(
b
−
x
)
(
b
−
a
)
(
b
−
c
)
f
o
r
c
<
x
≤
b
,
{\displaystyle f(x)={\begin{cases}{\frac {2(x-a)}{(b-a)(c-a)}}&\mathrm {for\ } a\leq x\leq c,\\[4pt]{\frac {2(b-x)}{(b-a)(b-c)}}&\mathrm {for\ } c<x\leq b,\\[4pt]\end{cases}}}
1
2
+
ln
b
−
a
2
{\displaystyle {\frac {1}{2}}+\ln {\frac {b-a}{2}}}
[
a
,
b
]
{\displaystyle [a,b]\,}
Weibull
f
(
x
)
=
k
λ
k
x
k
−
1
exp
(
−
x
k
λ
k
)
{\displaystyle f(x)={\frac {k}{\lambda ^{k}}}x^{k-1}\exp \left(-{\frac {x^{k}}{\lambda ^{k}}}\right)}
(
k
−
1
)
γ
E
k
+
ln
λ
k
+
1
{\displaystyle {\frac {(k-1)\gamma _{E}}{k}}+\ln {\frac {\lambda }{k}}+1}
[
0
,
∞
)
{\displaystyle [0,\infty )\,}
Multivariate normal
f
X
(
x
→
)
=
{\displaystyle f_{X}({\vec {x}})=}
exp
(
−
1
2
(
x
→
−
μ
→
)
⊤
Σ
−
1
⋅
(
x
→
−
μ
→
)
)
(
2
π
)
N
/
2
|
Σ
|
1
/
2
{\displaystyle {\frac {\exp \left(-{\frac {1}{2}}({\vec {x}}-{\vec {\mu }})^{\top }\Sigma ^{-1}\cdot ({\vec {x}}-{\vec {\mu }})\right)}{(2\pi )^{N/2}\left|\Sigma \right|^{1/2}}}}
1
2
ln
{
(
2
π
e
)
N
det
(
Σ
)
}
{\displaystyle {\frac {1}{2}}\ln\{(2\pi e)^{N}\det(\Sigma )\}}
R
N
{\displaystyle \mathbb {R} ^{N}}
Many of the differential entropies are from.[ 9] : 120–122
As described above, differential entropy does not share all properties of discrete entropy. For example, the differential entropy can be negative; also it is not invariant under continuous coordinate transformations. Edwin Thompson Jaynes showed in fact that the expression above is not the correct limit of the expression for a finite set of probabilities.[ 10] : 181–218
A modification of differential entropy adds an invariant measure factor to correct this, (see limiting density of discrete points ). If
m
(
x
)
{\displaystyle m(x)}
is further constrained to be a probability density, the resulting notion is called relative entropy in information theory:
D
(
p
∥
m
)
=
∫
p
(
x
)
log
p
(
x
)
m
(
x
)
d
x
.
{\displaystyle D(p\parallel m)=\int p(x)\log {\frac {p(x)}{m(x)}}\,dx.}
The definition of differential entropy above can be obtained by partitioning the range of
X
{\displaystyle X}
into bins of length
h
{\displaystyle h}
with associated sample points
i
h
{\displaystyle ih}
within the bins, for
X
{\displaystyle X}
Riemann integrable. This gives a quantized version of
X
{\displaystyle X}
, defined by
X
h
=
i
h
{\displaystyle X_{h}=ih}
if
i
h
≤
X
≤
(
i
+
1
)
h
{\displaystyle ih\leq X\leq (i+1)h}
. Then the entropy of
X
h
=
i
h
{\displaystyle X_{h}=ih}
is[ 2]
H
h
=
−
∑
i
h
f
(
i
h
)
log
(
f
(
i
h
)
)
−
∑
h
f
(
i
h
)
log
(
h
)
.
{\displaystyle H_{h}=-\sum _{i}hf(ih)\log(f(ih))-\sum hf(ih)\log(h).}
The first term on the right approximates the differential entropy, while the second term is approximately
−
log
(
h
)
{\displaystyle -\log(h)}
. Note that this procedure suggests that the entropy in the discrete sense of a continuous random variable should be
∞
{\displaystyle \infty }
.
^ Jaynes, E.T. (1963). "Information Theory And Statistical Mechanics" (PDF) . Brandeis University Summer Institute Lectures in Theoretical Physics . 3 (sect. 4b).
^ a b c d e f g h Cover, Thomas M.; Thomas, Joy A. (1991). Elements of Information Theory . New York: Wiley. ISBN 0-471-06259-6 .
^ Vasicek, Oldrich (1976), "A Test for Normality Based on Sample Entropy", Journal of the Royal Statistical Society, Series B , 38 (1): 54–59, doi :10.1111/j.2517-6161.1976.tb01566.x , JSTOR 2984828 .
^ Gibbs, Josiah Willard (1902). Elementary Principles in Statistical Mechanics, developed with especial reference to the rational foundation of thermodynamics . New York: Charles Scribner's Sons.
^ Kraskov, Alexander; Stögbauer, Grassberger (2004). "Estimating mutual information". Physical Review E . 60 (6): 066138. arXiv :cond-mat/0305641 . Bibcode :2004PhRvE..69f6138K . doi :10.1103/PhysRevE.69.066138 . PMID 15244698 . S2CID 1269438 .
^ Fazlollah M. Reza (1994) [1961]. An Introduction to Information Theory . Dover Publications, Inc., New York. ISBN 0-486-68210-2 .
^ "proof of upper bound on differential entropy of f (X )" . Stack Exchange . April 16, 2016.
^ Park, Sung Y.; Bera, Anil K. (2009). "Maximum entropy autoregressive conditional heteroskedasticity model" (PDF) . Journal of Econometrics . 150 (2). Elsevier: 219–230. doi :10.1016/j.jeconom.2008.12.014 . Archived from the original (PDF) on 2016-03-07. Retrieved 2011-06-02 .
^ Lazo, A. and P. Rathie (1978). "On the entropy of continuous probability distributions". IEEE Transactions on Information Theory . 24 (1): 120–122. doi :10.1109/TIT.1978.1055832 .
^ Jaynes, E.T. (1963). "Information Theory And Statistical Mechanics" (PDF) . Brandeis University Summer Institute Lectures in Theoretical Physics . 3 (sect. 4b).